package Month07.day15.test2;

public class Teach extends Person{
    @Override
    public void eat() {
        System.out.println("吃工作餐");
    }

    private int TeachNum;

    public Teach() {
    }

    public Teach(int teachNum) {
        TeachNum = teachNum;
    }

    public Teach(String name, String sex, int age, int teachNum) {
        super(name, sex, age);
        TeachNum = teachNum;
    }

    public int getTeachNum() {
        return TeachNum;
    }

    public void setTeachNum(int teachNum) {
        TeachNum = teachNum;
    }
}
